import { http } from '@/utils/http/axios';

// 获取用户模块列表
export function List(params) {
  return http.request({
    url: '/userModule/list',
    method: 'get',
    params,
  });
}

// 修改用户模块状态
export function Status(params) {
  return http.request({
    url: '/userModule/status',
    method: 'POST',
    params,
  });
}

// 生成小程序二维码
export function Qrcode(params) {
  return http.request({
    url: '/miniProgram/qrCode',
    method: 'POST',
    params,
  });
}

export function QueryOldTicket(params) {
  return http.request({
    url: '/operation/queryOldTicket',
    method: 'GET',
    params,
  });
}

export function OpenMember(params) {
  return http.request({
    url: '/operation/openMember',
    method: 'GET',
    params,
  });
}